<template>
  <div class="goodsList">
    <goods-list-item class="goodslistContent" v-for="(goodsItem,index) in goods" :goodsItem="goodsItem" :key="index"/>
  </div>
</template>

<script>
import GoodsListItem from "@/components/goodslist/GoodsListItem";
export default {
  name: "GoodsList",
  data(){
    return {}
  },
  components:{
    GoodsListItem
  },
  props:{
    goods:{
      type:Array,
      default(){
        return []
      }
    }
  }
}
</script>

<style scoped>
.goodsList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 2px;
}

</style>
